﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HY.Entity
{
    public class SysDept : EntityBaseModel
    {
        /// <summary>
        /// 部门编码
        /// </summary>
        [Required]
        [StringLength(20)]
        public string DeptCode { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        [Required]
        [StringLength(20)]
        public string DeptName { get; set; }
        
        /// <summary>
        /// 上级部门ID
        /// </summary>
        public int ParentID { get; set; }

        /// <summary>
        /// 部门排序
        /// </summary>
        public int DeptSort { get; set; }

        /// <summary>
        /// 部门类型（0:租出部门，1:租赁部门）
        /// </summary>
        public int DeptType { get; set; }
    }
}
